package huawei.exam1;

import java.util.Scanner;

/**
 * @author : Rookie
 * @description : 取近似值
 * @date : 2022/12/12
 */
public class HJ7 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            String str = scanner.nextLine();
            String xs = str.substring(str.indexOf(".") + 1);
            String zx = str.substring(0,str.indexOf("."));
            Integer zxNum = Integer.parseInt(zx);
            char firstChar = xs.charAt(0);
            int firstNum = Integer.parseInt(String.valueOf(firstChar));
            Integer result = zxNum;
            if (firstNum >= 5) {
                result = zxNum + 1;
            }
            System.out.println(result);
        }
    }
}
